package controller;

import javax.ejb.EJB;

import EJB.Business.GestorDeAdministradorLocal;


public class PlatoAdmin extends BaseController {
	private String price = "";
	private String image = "";
	private int type;
	private String name = "";
	
	private @EJB GestorDeAdministradorLocal gestor;	
	
	public String createPlato(){
		String res = null;
		unsetFlash();
		
		String[] params = {price, image, type+"", name};		
		gestor.agregarPlato(params);
		res = "addPlato.success";
		
		return res;
	}

	
	public String getPrice() {
		return price;
	}
	public void setPrice(String price) {
		this.price = price;
	}
	public String getImage() {
		return image;
	}
	public void setImage(String image) {
		this.image = image;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

	
}
